package cn.com.thinvent.dispatch.dao;

import cn.com.thinvent.dispatch.entity.ActivityManagement;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ActivityManagementMapper {

    void insertActivity(ActivityManagement activityManagement);

    void updateActivity(ActivityManagement activityManagement);

    ActivityManagement selectActivityById(String id);

    void deleteActivityById(String id);

    List<ActivityManagement> selectByCriteria(@Param("activityType") String activityType,
                                              @Param("startTime") Date startTime,
                                              @Param("endTime") Date endTime);

    int countByCriteria(@Param("activityType") String activityType,
                        @Param("startTime") Date startTime,
                        @Param("endTime") Date endTime);

}
